package com.orcl.ds1.controller;

import com.orcl.ds1.service.OneService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test1")
@Api("测试")
public class OneController {
    @Autowired
    private OneService testService;

    @GetMapping("/getZynr")
    @ApiOperation("查询预警内容")
    public Object getZynr(){
        return testService.getZynr();
    }
}
